﻿namespace HQS.TokenInterpolation.Tokens
{
    [Token(Name = "padright")]
    public class PadRight : AbstractToken
    {
        [TokenProperty("this")]
        public string This { get; protected set; }

        [TokenProperty("length", false)]
        public string Length { get; protected set; }

        [TokenProperty("with", false)]
        public char With { get; protected set; }

        protected override TokenRuntimeValue OnAccept(IDataSourcesVisitor dataSourcesVisitor)
        {
            return dataSourcesVisitor.Visit(this);
        }
    }
}